﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:l="clr-namespace:SharpMap.Wpf" 
    >
    <Style TargetType="{x:Type l:ContentLayerView}">
        <Style.Resources>
                <ResourceDictionary>
                    <ResourceDictionary.MergedDictionaries>
                        <ResourceDictionary Source="/SharpMap.Presentation.Wpf;component/LayerEdit/DesignerItem.xaml"/>
                    </ResourceDictionary.MergedDictionaries>
                </ResourceDictionary>
        </Style.Resources>
        <Setter Property="Template">
            <Setter.Value>
            <ControlTemplate TargetType="ItemsControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
            <Border BorderThickness="{TemplateBinding Border.BorderThickness}" Padding="{TemplateBinding Control.Padding}" BorderBrush="{TemplateBinding Border.BorderBrush}" Background="{TemplateBinding Panel.Background}" SnapsToDevicePixels="True">
                   <ItemsPresenter SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" />
             </Border>
            </ControlTemplate>
          </Setter.Value>
         </Setter>
        <!--<Setter Property="ItemContainerStyle" Value="{StaticResource sssstyle}"/>-->
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <l:GeoPanel IsItemsHost="True">
                    </l:GeoPanel>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>